package com.hdy.javachatroomdemo.Model;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

@Component
@Data
@ConfigurationProperties(prefix="user")
public class UserProperties {
    //这里不用加autowired因为会自动从配置文件中注入
    private Session session;
    @Data
    public static class Session{
        private String key;
//        private String id;
    }
}
